<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex LIST_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between LIST_fd0_0'      >
            <view   class='flex flex-wrap align-center LIST_fd0_0_c0'   @tap="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  LIST_fd0_0_c0_c0'  >&#xE794;</text>
</view>
    <view   class='flex align-center justify-end LIST_fd0_0_c0'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex benben-flex-layout flex-wrap align-center LIST_flex_1"    >
        <view>
        <benben-flex-tabs class-name='LIST_benbenTabsfd1_0'  v-model="tabs" ref="benben_tabsfd1_0" select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false' :open-sticky='true' :top='235' :is-show-content='false' :scrollspy='false'  :tabs-info.sync="tabsInfofd1_0" @change="getMasterFunc()" >
            
                    <scroll-view
          @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft"
          id="benben_tabsfd1_0"
          class="benben-tabs"
          style="width:750rpx"
          :scroll-x="true"
          :scroll-left.sync="tabsInfofd1_0.moveX"
          scroll-with-animation="all .3s ease"
        >
          <view class="benben-tabs-content" id="benben_tabsfd1_0-content">
            <view id="benben_tabsfd1_0-title" class="benben-tabs-title flex flex align-center justify-around">
                        <view 
                :class="{ 'checkTitlefd1_0': tabs == '1', 'flex flex-wrap align-center': true }"
                @tap="tabs = '1'"
                :id="`benben_tabsfd1_0-title-item-${'1'}`"
                
                
              >
                
<text   >完成单量</text>

              </view>            <view 
                :class="{ 'checkTitlefd1_0': tabs == '2', 'flex flex-wrap align-center': true }"
                @tap="tabs = '2'"
                :id="`benben_tabsfd1_0-title-item-${'2'}`"
                
                
              >
                
<text   >星级评分</text>

              </view>
            </view>
            <view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}" id="benben_tabsfd1_0-line" class="benben-tabs-line flex benben-flex-tabs-line LIST_linefd1_0"></view>
          </view>
        </scroll-view>
            
        </benben-flex-tabs>
        
</view>
</view>
        
<!---flex布局flex布局结束-->
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout LIST_flex_2"    >
            <template v-for = '(item,key0) in masterList.list'>
    <view   class='flex align-center justify-around LIST_fd2_0'       :key='key0'>
        <text class='LIST_fd2_0_c0'      >{{key0+1}}</text>
<image class='LIST_fd2_0_c1'  mode="aspectFit"  :src='item.avatar'></image>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
        <text class='LIST_fd2_0_c2_c0'  >{{item.nickname}}</text>
</view>
<text class='LIST_fd2_0_c3'  >{{item.sex}}</text>
<text class='LIST_fd2_0_c4'  >{{item.num}}</text>
</view>
    </template>
    
<benben-empty :list-data="masterList.list">
<view class='flex flex-direction flex-wrap align-center LIST_fd2_1' >
<image class='LIST_fd2_1_c0'  mode="widthFix"  :src='STATIC_URL+"58.png"'></image>

</view>
</benben-empty>
</view>
        
<!---flex布局flex布局结束-->
    <view class="flex benben-position-layout flex flex-wrap align-center LIST_flex_3"    >
        <image class='LIST_fd3_0'  mode="aspectFit"  :src='masterList.my_info.avatar'></image>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
        <text class='LIST_fd3_1_c0'  >{{masterList.my_info.nickname}}</text>
    <view   class='flex flex-wrap align-center'      >
        <text class='LIST_fd3_1_c1_c0'  >{{tabs==1?"完成单量":"星级评分"}}</text>
<text class='LIST_fd3_1_c1_c0'  >{{masterList.my_info.num}}</text>
</view>
</view>
    <view   class='flex flex-wrap align-center LIST_fd3_2'      >
        <text class='LIST_fd3_2_c0'  >{{masterList.my_info.paiming}}</text>
</view>

        </view>
<view :style="{height: '120rpx'}"  ></view>
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"tabsInfofd1_0":{ lineleft: '', lineWidth: '', moveX: 0, scrollX: 0, PageScrollX: 0 },"tabs":"1","masterList":{"list":[],"my_info":{"num":"","paiming":"","nickname":"","avatar":""}}};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.getMasterFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //获取师傅信息
                async getMasterFunc(){
                        //请求方法
    //数据验证
    
  let datamasterList = await this.$api.get(global.apiUrls.post65f78e806b0d0, {
    type:this.tabs
  });
  
  if (datamasterList.data.code != 1) {
    this.$message.info(datamasterList.data.msg);
    return
  } 
  let infomasterList = datamasterList.data;
  this.masterList = infomasterList.data
  
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:url(image-path('158.png')) no-repeat;background-size: 100% auto;
        }
    .LIST_flex_0{
        background:url(image-path('158.png')) no-repeat;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .LIST_fd0_0_c0_c0{
        font-size:36rpx;color:rgba(255, 255, 255, 1);font-weight:500;
    }
    .LIST_fd0_0_c0{
        width:100rpx;
    }
    .LIST_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .LIST_flex_1{
        margin:235rpx 0rpx 0rpx 0rpx;
    }
    .LIST_linefd1_0{
        background:rgba(255, 255, 255, 1);width:40rpx;height:6rpx;top:80rpx;background-size:100% auto !important;border-radius:3rpx;
    }
    .checkTitlefd1_0{
        font-weight:700 !important;font-size:32rpx !important;color:rgba(255, 255, 255, 1) !important;background-color:rgba(255, 255, 255, 0) !important;
    }
    ::v-deep .LIST_benbenTabsfd1_0{
        background:rgba(255, 111, 96, 1);width:750rpx;height:90rpx;white-space:nowrap;text-align:center;font-size:32rpx;font-weight:400;color:#FFFFFF;
    }
    .LIST_flex_2{
        padding:24rpx 24rpx 0rpx 24rpx;
    }
    .LIST_fd2_1_c0{
        width:400rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .LIST_fd2_1{
        width:100%;padding:50rpx 0rpx 50rpx 0rpx;
    }
    .LIST_fd2_0_c4{
        color:#333333;font-size:32rpx;font-weight:700;line-height:35rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;width:110rpx;text-align:right;
    }
    .LIST_fd2_0_c3{
        color:#333333;font-size:24rpx;font-weight:400;line-height:33rpx;width:80rpx;
    }
    .LIST_fd2_0_c2_c0{
        color:#333333;font-size:32rpx;font-weight:700;line-height:45rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;width:260rpx;
    }
    .LIST_fd2_0_c1{
        width:88rpx;height:88rpx;border-radius:44rpx 44rpx 44rpx 44rpx;
    }
    .LIST_fd2_0_c0{
        color:#EBA400;font-size:48rpx;font-weight:800;line-height:52rpx;min-width:70rpx;
    }
    .LIST_fd2_0{
        margin:0rpx 0rpx 24rpx 0rpx;
    }
    .LIST_flex_3{
        background:rgba(255, 255, 255, 1);width:750rpx;height:120rpx;overflow:hidden;z-index:10;bottom:calc(0rpx + var(--window-bottom));box-shadow:0rpx 0rpx 6rpx rgba(0, 0, 0, 0.16);background-size:100% auto;
    }
    .LIST_fd3_2_c0{
        color:#F8F8F8;font-size:28rpx;font-weight:700;line-height:40rpx;
    }
    .LIST_fd3_2{
        background:url(image-path('159.png')) no-repeat;margin:0rpx 0rpx 0rpx auto;padding:0rpx 29rpx 0rpx 128rpx;height:96rpx;background-size:100% 100%;
    }
    .LIST_fd3_1_c1_c0{
        color:#999999;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .LIST_fd3_1_c0{
        color:#333333;font-size:28rpx;font-weight:700;line-height:40rpx;max-width:200rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;
    }
    .LIST_fd3_0{
        width:88rpx;height:88rpx;border-radius:44rpx 44rpx 44rpx 44rpx;margin:0rpx 24rpx 0rpx 32rpx;
    }
</style>